#include "CTriggerDescriptor.h"


CTriggerDescriptor::CTriggerDescriptor(void):IDescriptorData(DESCRIPTOR_TAG_TRIGGER)
, m_nTriggerFlag(0)
, m_nTriggerValue(0)
{	
}

CTriggerDescriptor::~CTriggerDescriptor(void)
{
}

void CTriggerDescriptor::GetData(BYTE* buff  , int &len)
{	
	CBuffer stBuffer(buff, DESCRIPTOR_MAXLEN);
	PACK_DESCRIPTOR_BUFFER_START(stBuffer, DESCRIPTOR_TAG_TRIGGER);
	stBuffer.Write((BYTE)m_nTriggerFlag);
	stBuffer.Write((DWORD)m_nTriggerValue);
	len = PACK_DESCRIPTOR_BUFFER_END(stBuffer);
}